/**************************************************************************** 
* 
* Copyright (c) 2023  C*Core -   All Rights Reserved  
* 
* THIS SOFTWARE IS DISTRIBUTED "AS IS," AND ALL WARRANTIES ARE DISCLAIMED, 
* INCLUDING MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
* 
* PROJECT     : CCFC2011BC           
* DESCRIPTION : intc demo code
* HISTORY     : Initial version.
* @file     intc_demo.h
* @version  1.1
* @date     2023 - 02 - 20
* @brief    Initial version.
*
*****************************************************************************/

#ifndef INTC_DEMO_H_
#define INTC_DEMO_H_

#include "CCFC2011BC.h"
#include "siul_lld.h"

/*CCFC2011BC EVB V1.0 PC[6]*/
#define LED1_TOGGLE  SIU.GPDO[PC6_PCR].R ^= 0x01U
#define LED3_TOGGLE  SIU.GPDO[PC8_PCR].R ^= 0x01U
/* 
 * Demo switch***************************************************/
#define INTC_EIRQ0_DEMO_SW      1U
#define INTC_RTC_DEMO_SW        0U


/************************************************************************/
/************************************************************************/
/************************************************************************/
void RTC_INT_Init(void);
void RTC_IT_Callback(void);
void EccExceptionHandler_withoutIntc_Demo(void);

/************************************************************************
 *    Functional declarations
 ************************************************************************/
extern void INTC_EIRQ0_LED_Demo(void);
extern void INTC_RTC_LED_Demo(void);
extern void INTC_Test_Demo(void);

#endif  /* __INTC_DEMO_H_ */
